{% extends 'usercenter-base.html' %}
{% load staticfiles %}
{% block custom_css %}
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.6.2/dist/css/bootstrap.min.css" integrity="sha384-xOolHFLEh07PJGoPkLv1IbcEPTNtaed2xpHsD9ESMhqIYd0nLMwNLD69Npy4HI+N" crossorigin="anonymous">

<link rel="stylesheet" type="text/css" href="{% static '' %}css/aui.css"/>
    <link rel="stylesheet" type="text/css" href="{% static '' %}css/muke/course/common-less.css">
{% load filter %}
{% endblock %}
{% block custom_bread %}
     <section>
        <div class="wp">
            <ul  class="crumbs">
                <li><a href="{% url 'index' %}">首页</a>></li>
                <li><a href="{% url 'users:info' %}">个人中心</a>></li>
                <li >成绩列表</li>
            </ul>
        </div>
    </section>
{% endblock %}


{% block rigt_form %}
      <div class="right">
            <div class="personal_des Releasecont">
                <div class="head">
                    <h1>成绩统计</h1>
                </div>
            </div>
            <div class="personal_des permessage">
                <div class="head">
                    <ul class="tab_header messagehead">
                      <li ><a href="{% url 'users:my_grade_classfication' %}">作业成绩区间统计</a></li>
                         <li><a href="{% url 'users:my_discuss_charts' %}">话题讨论次数统计</a></li>
                        <li class="active"><a href="">成绩列表</a></li>
                         <li><a href="{% url 'users:my_discuss_list' %}">话题人数</a></li>
                    </ul>
                </div>
                <div class="companycenter">
                    <div class="messagelist">
                        {% for homework  in homework_list %}

                    <div class="messages" class="messages" style="border-bottom: 1px solid #edf1f2;">
                        <div class="fr">
                            <div class="top"><span >{{ homework.course.name }}</span> <i style="font-size: 2px;color: #aaac9c">（发布时间：{{ homework.add_time }}）</i>
                                <a style="position: absolute;right: 5%" type="button" class="btn btn-outline-secondary btn-sm" href="/users/my_score_list/?id={{ homework.id }}">查看详情</a>
                            </div>
                            <p>
                                <span>
                                    <i class="aui-iconfont aui-icon-notice">&nbsp;&nbsp;{{ homework.name }}</i>
                                    <i style="position: absolute;left: 43%">提交人数：{{ homework.user_home_all.count}}</i>
                                    <i style="position:absolute;color: red;right: 5%">截止：{{ homework.end_time }}</i>
                                </span>
                            </p>
                        </div>
                    </div>

                    {% endfor %}

                    </div>
                </div>
                <div class="pageturn pagerright">
                   <ul class="pagelist">
             {% if homework_list.has_previous  %}
                 <li class="long"><a href="?page={{homework_list.previous_page_number}}">上一页</a></li>
            {%endif%}

                {% for i in   homework_list.paginator.page_range %}
                 {%if i == homework_list.number  %}
                     <li class="active"><a href="?page={{ i }}">{{i }}</a></li>
                    {% else %}
                      <li><a href="?page={{ i }}" class="page">{{ i }}</a></li>
                    {% endif %}
                {% endfor %}
                {% if homework_list.has_next  %}
                 <li class="long"><a href="?page={{homework_list.next_page_number}}">下一页</a></li>
            {%endif%}
            </ul>
                </div>
            </div>
        </div>
{% endblock %}




